import { createRouter, createWebHistory } from 'vue-router'
import Login from '../views/Login.vue';
import Register from '@/views/Register.vue';
import Index from '../views/Index.vue';
import Appointment from '@/views/Appointment.vue';
import Hospital from '@/views/Hospital.vue';
import Setmeal from '../views/Setmeal.vue';
import SelectDate from '@/views/SelectDate.vue';
import Confirmorder from '@/views/Confirmorder.vue';
import AppointmentSuccess from '@/views/AppointmentSuccess.vue';
import AppointmentList from '@/views/AppointmentList.vue';
import Hospital1 from '@/views/Hospital1.vue';
import Temp from '@/views/Temp.vue';
import AppointmentCancel from '@/views/AppointmentCancel.vue';
import Personal from '@/views/Personal.vue';
import Report from '../views/Report.vue';
import ReportList from '../views/ReportList.vue';
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/temp',
      name: Temp,
      component: Temp
    },
    {
      path: '/',
      name: 'home',
      component: Login
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path:'/register',
      name:'Register',
      component:Register
    },
    {
      path:'/index',
      name:'Index',
      component:Index

    },
    {
      path: '/appointment',
      name: 'Appointment',
      component: Appointment
    },
    {
      path: '/hospital',
      name: 'Hospital',
      component: Hospital
    },
    {
      path: '/setmeal',
      name: 'Setmeal',
      component:Setmeal
    },
    {
      path: '/selectDate',
      name: SelectDate,
      component: SelectDate
    },
    {
      path: '/confirmOrder',
      name: Confirmorder,
      component: Confirmorder
    },
    {
      path: '/appointmentSuccess',
      name: AppointmentSuccess,
      component: AppointmentSuccess
    },
    {
      path: '/appointmentList',
      name: AppointmentList,
      component: AppointmentList
    },
    {
      path: '/hospital1',
      name: Hospital1,
      component: Hospital1
    },
    {
      path: '/appointmentCancel',
      name: AppointmentCancel,
      component: AppointmentCancel
    },
    {
      path: '/personal',
      name: Personal,
      component: Personal
    },
    {
      path: '/report',
      name: Report,
      component:Report
    },
    {
      path: '/reportList',
      name: ReportList,
      component:ReportList
    }
  ]
})

export default router
